package com.me.videoservice.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.me.videoservice.model.entry.DeviceInfo;
import com.me.videoservice.model.entry.DeviceInfoWithStreamVo;
import java.util.List;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface DeviceInfoDao extends BaseMapper<DeviceInfo> {

  List<DeviceInfo> deviceDetail();

  Integer exist(String stream);

  Integer checkClientAndStreamExist(@Param("clientId") String clientId,
      @Param("stream") String stream);

  List<DeviceInfoWithStreamVo> queryAllInfoWithPublish();

}
